﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;

namespace GenerateReports
{
    public partial class Util
    {
        public static string GetServiceData(string ScorchURL)
        {
            string result;
            WebClient c = new WebClient();
            c.Credentials = CredentialCache.DefaultCredentials;
            Stream response = c.OpenRead(ScorchURL);
            StreamReader reader = new StreamReader(response);
            result = reader.ReadToEnd();
            return result;
        }
    }
}
